package pl.ydp.components.mathcell.mathrecognizer.model.presets
{
	import flash.geom.Rectangle;
	
	import pl.ydp.components.mathcell.mathrecognizer.engine.Parameters;
	import pl.ydp.components.mathcell.mathrecognizer.model.PrimitiveModel;
	import pl.ydp.components.mathcell.mathrecognizer.model.PrimitiveModelPositioning;
	
	public class PrimitivePresets
	{
		public static function PrimitivePresetsSetUp():void{
			
			var W:Number = Parameters.CHAR_NORMALIZED_WIDTH;
			var H:Number = Parameters.CHAR_NORMALIZED_HEIGHT;
			
   
		}
		
		public static const NONE:Number = -1;
		
		public static const ABS_CENTER_DOT:PrimitiveModel 		= new PrimitiveModel(new Rectangle(0.5,	0.5,	0,		0), 	PrimitiveModelPositioning.ABSOLUTE );
		public static const ABS_FULL:PrimitiveModel				= new PrimitiveModel(new Rectangle(0,	0, 		1,		1), 	PrimitiveModelPositioning.ABSOLUTE );
		
		public static const ABS_UPPER_HALF:PrimitiveModel		= new PrimitiveModel(new Rectangle(0, 	0, 		1, 		0.5), 	PrimitiveModelPositioning.ABSOLUTE );
		public static const ABS_LOWER_HALF:PrimitiveModel		= new PrimitiveModel(new Rectangle(0, 	0.5, 	1, 		0.5), 	PrimitiveModelPositioning.ABSOLUTE );
		public static const ABS_LEFT_HALF:PrimitiveModel		= new PrimitiveModel(new Rectangle(0, 	0, 		0.5,	1), 	PrimitiveModelPositioning.ABSOLUTE );
		public static const ABS_RIGHT_HALF:PrimitiveModel		= new PrimitiveModel(new Rectangle(0.5, 0, 		0.5,	1), 	PrimitiveModelPositioning.ABSOLUTE );
		
		public static const ABS_UPPER_QUARTER:PrimitiveModel	= new PrimitiveModel(new Rectangle(0, 	0, 		1, 		0.25), 	PrimitiveModelPositioning.ABSOLUTE );
		public static const ABS_LOWER_QUARTER:PrimitiveModel	= new PrimitiveModel(new Rectangle(0, 	0.75, 	1, 		0.25), 	PrimitiveModelPositioning.ABSOLUTE );
		public static const ABS_LEFT_QUARTER:PrimitiveModel		= new PrimitiveModel(new Rectangle(0, 	0, 		0.25, 	1), 	PrimitiveModelPositioning.ABSOLUTE );
		public static const ABS_RIGHT_QUARTER:PrimitiveModel	= new PrimitiveModel(new Rectangle(0.75,0, 		0.25, 	1), 	PrimitiveModelPositioning.ABSOLUTE );
		
		public static const ABS_TOP_LEFT_SQUARE:PrimitiveModel		= new PrimitiveModel(new Rectangle(0, 		0, 		0.5, 0.5), PrimitiveModelPositioning.ABSOLUTE );
		public static const ABS_TOP_RIGHT_SQUARE:PrimitiveModel		= new PrimitiveModel(new Rectangle(0.5, 	0, 		0.5, 0.5), PrimitiveModelPositioning.ABSOLUTE );
		public static const ABS_BOTTOM_LEFT_SQUARE:PrimitiveModel	= new PrimitiveModel(new Rectangle(0, 		0.5, 	0.5, 0.5), PrimitiveModelPositioning.ABSOLUTE );
		public static const ABS_BOTTOM_RIGHT_SQUARE:PrimitiveModel	= new PrimitiveModel(new Rectangle(0.5, 	0.5, 	0.5, 0.5), PrimitiveModelPositioning.ABSOLUTE );
		
		public static const ABS_CENTER_SQUARE:PrimitiveModel		= new PrimitiveModel(new Rectangle(0.25,	0.25, 	0.5, 0.5), 	PrimitiveModelPositioning.ABSOLUTE );
		
		
		// RELATIVES
		
		public static const RLT_CENTER_DOT:PrimitiveModel 		= new PrimitiveModel(new Rectangle(0.5,	0.5,	0,		0), 	PrimitiveModelPositioning.RELATIVE );
		public static const RLT_FULL:PrimitiveModel				= new PrimitiveModel(new Rectangle(0,	0, 		1,		1), 	PrimitiveModelPositioning.RELATIVE );
		
		public static const RLT_UPPER_HALF:PrimitiveModel		= new PrimitiveModel(new Rectangle(0, 	0, 		1, 		0.5), 	PrimitiveModelPositioning.RELATIVE );
		public static const RLT_LOWER_HALF:PrimitiveModel		= new PrimitiveModel(new Rectangle(0, 	0.5, 	1, 		0.5), 	PrimitiveModelPositioning.RELATIVE );
		public static const RLT_LEFT_HALF:PrimitiveModel		= new PrimitiveModel(new Rectangle(0, 	0, 		0.5,	1), 	PrimitiveModelPositioning.RELATIVE );
		public static const RLT_RIGHT_HALF:PrimitiveModel		= new PrimitiveModel(new Rectangle(0.5, 0, 		0.5,	1), 	PrimitiveModelPositioning.RELATIVE );
		
		public static const RLT_UPPER_QUARTER:PrimitiveModel	= new PrimitiveModel(new Rectangle(0, 	0, 		1, 		0.25), 	PrimitiveModelPositioning.RELATIVE );
		public static const RLT_LOWER_QUARTER:PrimitiveModel	= new PrimitiveModel(new Rectangle(0, 	0.75, 	1, 		0.25), 	PrimitiveModelPositioning.RELATIVE );
		public static const RLT_LEFT_QUARTER:PrimitiveModel		= new PrimitiveModel(new Rectangle(0, 	0, 		0.25, 	1), 	PrimitiveModelPositioning.RELATIVE );
		public static const RLT_RIGHT_QUARTER:PrimitiveModel	= new PrimitiveModel(new Rectangle(0.75,0, 		0.25, 	1), 	PrimitiveModelPositioning.RELATIVE );
		
		public static const RLT_TOP_LEFT_SQUARE:PrimitiveModel		= new PrimitiveModel(new Rectangle(0, 		0, 		0.5, 0.5), PrimitiveModelPositioning.RELATIVE );
		public static const RLT_TOP_RIGHT_SQUARE:PrimitiveModel		= new PrimitiveModel(new Rectangle(0.5, 	0, 		0.5, 0.5), PrimitiveModelPositioning.RELATIVE );
		public static const RLT_BOTTOM_LEFT_SQUARE:PrimitiveModel	= new PrimitiveModel(new Rectangle(0, 		0.5, 	0.5, 0.5), PrimitiveModelPositioning.RELATIVE );
		public static const RLT_BOTTOM_RIGHT_SQUARE:PrimitiveModel	= new PrimitiveModel(new Rectangle(0.5, 	0.5, 	0.5, 0.5), PrimitiveModelPositioning.RELATIVE );
		
		public static const RLT_CENTER_SQUARE:PrimitiveModel		= new PrimitiveModel(new Rectangle(0.25,	0.25, 	0.5, 0.5), 	PrimitiveModelPositioning.RELATIVE );

	}
}